include:
  - pkg.pkg-init
zlib-source-install:
  file.managed:
    - name: /usr/local/src/zlib-1.2.11.tar.gz
    - source: salt://zlib/files/zlib-1.2.11.tar.gz
    - user: root
    - group: root
    - mode: 755
  cmd.run:
    - name: cd /usr/local/src && sudo tar xf zlib-1.2.11.tar.gz && cd zlib-1.2.11 && sudo ./configure --prefix=/usr/local/zlib && sudo make && sudo make install
    - unless: test -d /usr/local/zlib
    - require:
      - file: zlib-source-install
